<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>天天生鲜-用户中心</title>
    <link rel="stylesheet" type="text/css" href="/static/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/static/css/main.css">
</head>
<body>
{% include 'header.html' %}

{% include 'search.html' %}

<div class="main_con clearfix">
    <div class="left_menu_con clearfix">
        <h3>用户中心</h3>
        <ul>
            <li><a href="/user_center_info">· 个人信息</a></li>
            <li><a href="/user_center_order" class="active">· 全部订单</a></li>
            <li><a href="/user_center_site">· 收货地址</a></li>
        </ul>
    </div>

    <div class="right_content clearfix">
        <h3 class="common_title2">全部订单</h3>
        {% for o,v in goods.items %}
        <ul class="order_list_th w978 clearfix">
            <li class="col01">{{o.time|date:"Y-m-d H:i:s"}}</li>
            <li class="col02" style="width:30%">订单号：{{o.order_no}}</li>
            <li class="col02 stress">{{o.get_status_display}}</li>
        </ul>

        <table class="order_list_table w980">
            <tbody>
            <tr>
                <td width="55%">
                    {%for t in v%}
                    <ul class="order_goods_list clearfix">
                        <li class="col01"><img src="/{{t.ing_url}}"></li>
                        <li class="col02">{{t.good_name}}<em>{{t.price}}元/500g</em></li>
                        <li class="col03">{{t.num}}</li>
                        <li class="col04">{{t.total_price}}元</li>
                    </ul>
                    <!--<ul class="order_goods_list clearfix">
                        <li class="col01"><img src="/static/images/goods02.jpg"></li>
                        <li class="col02">嘎啦苹果嘎啦苹果<em>11.80元/500g</em></li>
                        <li class="col03">1</li>
                        <li class="col04">11.80元</li>
                    </ul>-->
                    {% endfor%}
                </td>
                {%if o.pay_status == 1%}
                <td width="15%">{{o.total_price}}元</td>
                <td width="15%">{{o.get_status_display}}</td>
                <td width="15%"><a href="/user_center_order/{{o.id}}" class="oper_btn">去付款</a></td>
                {%else%}
                <td width="15%">已付款</td>
                <td width="15%"><a href="#" class="oper_btn">查看物流</a></td>
            </tr>
            {%endif%}
            </tbody>
        </table>
{% endfor %}
        <div class="pagenation">
            <a href="#">上一页</a>
            <a href="#" class="active">1</a>
            <a href="#">2</a>
            <a href="#">3</a>
            <a href="#">4</a>
            <a href="#">5</a>
            <a href="#">下一页></a>
        </div>
    </div>
</div>


{% include 'footer.html' %}

</body>
</html>